self_dir=$(dirname $(readlink -f "$0"))
log_file_path="/var/log/vsftpd.log"
hist=$(wc -l $log_file_path | grep "[0-9]*" -o)
last_hist=$(cat $self_dir/last_hist.txt)
value=0
if [ $last_hist -ne 0 ]
then
	value=`expr $hist - $last_hist`
fi
echo $hist > $self_dir/last_hist.txt
echo $value > $self_dir/current_pkts.txt
